package com.zxl.designpattern.creator.singleton;

/**
 * @author zxl
 * @version 1.0
 * @description 设计模式-创建型模式-饿汉式单例模式(枚举型，可以防反射，防序列化)
 * @date 2025/5/31 17:56
 */
public enum EagerSingletonEnum {

    INSTANCE;

    private void doSomething(){
        System.out.println("do something");
    }

}
